package com.huang.core;

import java.io.IOException;
import java.io.Reader;
import java.sql.SQLException;

import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;

import com.huang.core.DB.imp.IUserInfo;
import com.huang.core.DB.model.UserInfo;

public class HelloWolrd {
	public String sayHello(String name) {

		return name + "hello world!";
	}
	
	public String getUserNameById(int userId) throws Exception{
		
		IUserInfo u= (IUserInfo)TableSelectUtil.getTableService("User");
		return u.getUserById(userId).getUser_name();
	}
	
	public static void main(String[] args) throws Exception {
		
	}
}
